import request from '@/utils/request'

// 查询现金账户列表
export function listCash(query) {
  return request({
    url: '/cash/cash/list',
    method: 'get',
    params: query
  })
}

// 查询现金账户详细
export function getCash(id) {
  return request({
    url: '/cash/cash/' + id,
    method: 'get'
  })
}

// 新增现金账户
export function addCash(data) {
  return request({
    url: '/cash/cash',
    method: 'post',
    data: data
  })
}

// 修改现金账户
export function updateCash(data) {
  return request({
    url: '/cash/cash',
    method: 'put',
    data: data
  })
}

// 删除现金账户
export function delCash(id) {
  return request({
    url: '/cash/cash/' + id,
    method: 'delete'
  })
}
// c查看科目
export function subjectListCash(id) {
  return request({
    url: '/cash/cash/subjectList/' + id,
    method: 'get'
  })
}
